﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.WarehouseManage.RelocationServices.Dto
{
    public  class RelocationDto
    {
        public int? Id { get; set; }

        /// <summary>
        /// 移库单号
        /// </summary>
        [MaxLength(30)]
        public string? RelocationCode { get; set; }
        /// <summary>
        /// 移库单类型
        /// </summary>
        [MaxLength(30)]
        public string? RelocationType { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        [MaxLength(20)]
        public string? Reviewer { get; set; }
        /// <summary>
        /// 审核意见
        /// </summary>
        [MaxLength(100)]
        public string? Opinion { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime Audittime { get; set; } = DateTime.Now;
        /// <summary>
        /// 制单人
        /// </summary>
        [MaxLength(30)]
        public string? Creator { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreatorTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(200)]
        public string? Remarks { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        [MaxLength(20)]
        public string? ProductCode { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [MaxLength(50)]
        public string? ProductName { get; set; }
        /// <summary>
        /// 存储单位
        /// </summary>
        public int UnitId { get; set; }

        /// <summary>
        /// 批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        [MaxLength(30)]
        public string? UnitName { get; set; }
        /// <summary>
        /// 移库数量
        /// </summary>
        public int Number { get; set; }
        /// <summary>
        /// 原仓库Id
        /// </summary>
        public int WarehouseId { get; set; }
        public string? OldWarehouseName { get; set; }
        /// <summary>
        /// 原库位Id
        /// </summary>
        public int OriginallocationId { get; set; }
        public string? OldLocationName { get; set; }
        /// <summary>
        /// 移入仓库Id
        /// </summary>
        public int MoveNewWareHouseId { get; set; }
        public string? NewWarehouseName { get; set; }
        /// <summary>
        /// 移入库位Id
        /// </summary>
        public int MoveLocationId { get; set; }
        public string? NewLocationName { get; set; }
    }
}
